package org.wangle.seckill.mq.component.delay;

import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.wangle.api.properties.MQ.SecKillProperties;

public class SecKillDelayBinding {

    public static Binding secKillDelayBinding(){
        return BindingBuilder.bind(new Queue(SecKillProperties.secKillDelayQueue)).to(new DirectExchange(SecKillProperties.secKillDelayExchange)).with(SecKillProperties.secKillDelayBindingKey);
    }
}
